home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 1.iso
/
t_os
/
wstype
/
source
/
getfiles.h
< prev
next >
Wrap
Text File
|
1991-10-18
|
685b
|
38 lines
/*** [getfiles.h]
*
* For GNU C Compiler (GCC)
*
***/
#define GF_SNON 0
#define GF_SEXT 1
#define GF_SNAME 2
#define GF_SDATE 3
#define EX_EXE 0
#define EX_DIR 1
#define EX_OTHER 2
typedef struct {
unsigned char name[13];
unsigned attr;
unsigned dt;
unsigned tm;
long sz;
unsigned ord;
} files;
typedef struct {
files **pbuf;
unsigned nfiles;
unsigned ndir;
} get_f;
/***
* メモリを用意し,カレントディレクトリを拡張子でソートする関数
* そのメモリを開放する関数
* 戻り値:エラーの場合はpbuf = NULL
***/
int Getfiles(int, get_f *, int);
void Gf_bufrel(void);
int Split_fname(const char *, unsigned, char *, char *);